package com.skyeyemonitoring.activitys;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.skyeyemonitoring.R;
import com.skyeyemonitoring.base.BaseActivity;

/**
 * 描述-本地功能模块
 * Created by ${QQZ} on 2017/5/11.
 */

public class LocalActivity extends BaseActivity implements View.OnClickListener {
    /**
     * 倾角数据
     */
    private Button mBtnLocalInclineData;
    /**
     * 振动数据
     */
    private Button mBtnLocalShakeData;
    /**
     * 日志查询
     */
    private Button mBtnLocalLogData;
    /**
     * 参数设置
     */
    private Button mBtnLocalParameterData;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.qqz_local_aty);

        setBackBtn("");
        initView();
    }



    private void initView() {
        mBtnLocalInclineData = (Button) findViewById(R.id.btn_local_incline_data);
        mBtnLocalInclineData.setOnClickListener(this);
        mBtnLocalShakeData = (Button) findViewById(R.id.btn_local_shake_data);
        mBtnLocalShakeData.setOnClickListener(this);
        mBtnLocalLogData = (Button) findViewById(R.id.btn_local_log_data);
        mBtnLocalLogData.setOnClickListener(this);
        mBtnLocalParameterData = (Button) findViewById(R.id.btn_local_parameter_data);
        mBtnLocalParameterData.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_local_incline_data:
                //倾斜数据
                startActivity(new Intent(this, LocalInclineActity.class));
                break;
            case R.id.btn_local_shake_data:
                //震动数据
                startActivity(new Intent(this, LocaShakeActity.class));
                break;
            case R.id.btn_local_log_data:
                startActivity(new Intent(this,LocalQueryDate.class));
                break;
            case R.id.btn_local_parameter_data:
            startActivity(new Intent(this,LocalApplySetting.class));
                break;
        }
    }
}
